home *** CD-ROM | disk | FTP | other *** search
- /*
- * MacRuntime.h
- * C Interface to the Macintosh Programmer's Workshop Libraries
- *
- * © Copyright Apple Computer Inc. 1993-1995
- * All rights reserved.
- *
- * Warning: This interface is NOT a part of the ANSI C standard.
- * We do NOT claim to be POSIX compliant. If you want
- * your code to be portable, don't use this interface.
- */
-
- /* Conditional Macros:
- * UsingStaticLibs - for CFM-68K: Insures that #pragma import is never used.
- * <none> - for CFM-68K: Insures that all functions and data items are
- * marked as library imports
- */
-
- #ifndef __MACRUNTIME__
- #define __MACRUNTIME__ 1
-
-
- #include <types.h>
-
- #if defined(__CFM68K__) || defined(__powerc)
- #include <CodeFragments.h> /* For "InitBlockPtr". */
- #endif /* __CFM68K__ || __powerc */
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- /* Program Initialization and Termination */
-
- int _RTInit(ProcPtr retPC, int *pArgC, char ***pArgV, char ***pEnvP, int forPascal);
- void _RTExit(int status);
-
- /* Utility Routine */
-
- pascal Boolean TrapAvailable (short TrapNumber);
-
- #if defined(__CFM68K__) || defined(__powerc)
-
- /* Default code fragment initialization and termination entry points. */
- /* Needed for CFM applications or shared libraries containing C++ code. */
-
- extern OSErr __init_app(CFragInitBlockPtr initBlockPtr);
- extern void __term_app(void);
- extern OSErr __init_lib(CFragInitBlockPtr initBlockPtr);
- extern void __term_lib(void);
-
- #endif /* __CFM68K__ || __powerc */
-
- #ifdef __cplusplus
- }
- #endif
- #endif